﻿<%@ Page Title="" Language="C#" MasterPageFile="~/InternalSite.Master" AutoEventWireup="true" CodeBehind="GroupIndex.aspx.cs" Inherits="DATN.mds.ContactManagement.GroupIndex" %>


<asp:Content ID="Content1" ContentPlaceHolderID="MainContent1" runat="server">


</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent2" runat="server">
<div id="contentx" class="clearingfix">
                    <center>
                            <br/>
                            <h3>Thêm Khách hàng vào nhóm:</h3>
                        <hr/>
                    </center>

              <div class="floatboxinternal">

            <!-----------------GridView Customer ------------------->
            <center>
            <asp:Label ID="Label1" runat="server" Text="Nhóm Khách Hàng"></asp:Label>
            <asp:DropDownList ID="Drr_Group" runat="server">
                  </asp:DropDownList>
                  
                  <br/>
                  <asp:Button ID="btnAddtoGroup" runat="server" 
                  Text="Thêm Vào Nhóm" CssClass="bty" onclick="btnAddtoGroup_Click"/>

                   <asp:Button ID="btCreatGroup" runat="server" 
                  Text="T&#7841;o Nhóm M&#7899;i" CssClass="bty" onclick="btCreatGroup_Click"/>
                  
                  <br/>
                  <asp:Label ID="lb_AddtoGroup" runat="server" Text=""></asp:Label>
                  <br/>
                  <b>Khách hàng &#273;ã ch&#7885;n:</b>
            <asp:GridView ID="gvCheckboxes" runat="server"
            AutoGenerateColumns="False" BackColor="White" 
            RowStyle-CssClass = "Grd_Row"
            CellPadding="2" >
            <Columns>
                
             <asp:TemplateField>
                <HeaderTemplate>H&#7885; Và Tên </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="Lb_LastName" 
                                runat="server" 
                                Text='<%# DataBinder.Eval(Container.DataItem, "LastName") %>'></asp:Label>
                   <asp:Label ID="Lb_FirstName" 
                                runat="server" 
                                Text='<%# DataBinder.Eval(Container.DataItem, "FirstName") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="140px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="140px" />
            </asp:TemplateField>
      
            <asp:BoundField DataField="Phone" HeaderText="&#272;i&#7879;n Tho&#7841;i"
                 NullDisplayText='<img src="../Content/images/error.png" />'>  
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
            </asp:BoundField>
            
            <asp:BoundField DataField="Mail" HeaderText="Th&#432; &#272;i&#7879;n T&#7917;"
                NullDisplayText='<img src="../Content/images/error.png" alt="c&#7853;p nh&#7853;t thêm thông tin"/>'>  
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
            </asp:BoundField>

            <asp:BoundField DataField="Habit" HeaderText="S&#7903; Thích"
                            NullDisplayText='<img src="../Content/images/error.png" />'> 
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="250px" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="250px" />
                            </asp:BoundField>

            <asp:BoundField DataField="Company" HeaderText="Công Ty"
                            NullDisplayText='<img src="../Content/images/error.png" alt="c&#7853;p nh&#7853;t thêm thông tin"/>'>  
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                            </asp:BoundField>

                     
                </Columns>
                <FooterStyle BackColor="#004a96" />
                <HeaderStyle BackColor="#004a96" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#004a96" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#b4cbd5" ForeColor="Black" Font-Size= "Small" />
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
    </center>
                  <!------------------------------------->
                  <br/>
                  <br/>
</div>
</div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent3" runat="server">


</asp:Content>
